package com.bsj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.concurrent.TimeUnit;

@MapperScan("com.bsj.*")
//@ComponentScan(basePackages = "com.bsj.power.*")
@SpringBootApplication
public class SipgatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(SipgatewayApplication.class, args);
        while (true) {
            try {
                TimeUnit.HOURS.sleep(1);
            } catch (InterruptedException e) {
                break;
            }
        }
    }

}
